Skip to content

fix: handle 404s gracefully#92

Merged
konstantinoscs merged 1 commit intodevelopfrom
fix/handle-404s-gracefully
Sep 10, 2025
Merged

fix: handle 404s gracefully#92
konstantinoscs merged 1 commit intodevelopfrom
fix/handle-404s-gracefully

Conversation

@konstantinoscs
Copy link
Contributor

Some of our operations that are not fulfilled for legitimate reasons but don't crash, return a "crash"-type of response to the CLI.
One such case is 404 e.g. deleting an app that doesn't exist.
Adding the case to handle those

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds proper error handling for HTTP 404 responses in the Tower CLI, allowing operations like deleting non-existent apps to return graceful error messages instead of "crash"-type responses.

  • Adds a specific case for StatusCode::NOT_FOUND in the error handling match statement
  • Uses output_full_error_details to provide detailed error information for 404 responses

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@bradhe bradhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@konstantinoscs konstantinoscs merged commit 4868b38 into develop Sep 10, 2025
4 checks passed
@konstantinoscs konstantinoscs deleted the fix/handle-404s-gracefully branch September 10, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants